<?php
$search_func = get_search_page_change_js();
$search_func = str_replace('[x]', '1', $search_func);
?>
    <div style="padding: 0 5px;" id="search_show" data-init="0"
         data-search-content="<?php echo $InputData['search_content'] ?>"
         data-list-type="<?php echo $InputData['list_type'] ?>">
        <div class="am-form">
            <div class="am-form-group am-form-icon am-form-feedback" style="margin-bottom:0px">
                <input id="search_text"
                       type="text" class="am-form-field"
                       placeholder="请输入搜索内容"
                       style="border-bottom: 1px solid #DEDEDE;border-top: none; border-left: none;border-right: none;"
                       value="<?php if (isset ($InputData['search_text'])) echo $InputData['search_text']; ?>">
                <a style="padding-right: 3px;" class="am-icon-search app-main-color" onclick="<?= $search_func ?>"></a>
            </div>
        </div>
        <?php require("{$CfgPara->root}/view/search_result.app.v.php"); ?>
    </div>
<?php
if (isset ($InputData['search_text'])) {
    // 如果提交了搜索文本 直接执行搜索
    echo "<script>setTimeout('{$search_func}', 100);</script>";
}
?>